@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
<table id="example" class="table table-striped responsive-utilities jambo_table">
    <thead>
    <tr class="headings">
        <th>
            <input type="checkbox" class="tableflat">
        </th>
        <th>林场名称</th>
        <th>国家</th>
        <th>图标</th>
        <th width="265px">品类</th>
        <th>资源</th>
        <th class=" no-link last"><span class="nobr">操作</span>
        </th>
    </tr>
    </thead>

    <tbody>
    @foreach($info as $k => $inf)
        <tr class="even pointer img-box">
            <td class="a-center ">
                <input type="checkbox" class="tableflat">
            </td>
            <td class="tr-time">
                {{ $inf->forest_name }}
            </td>
            <td class=" "> {{ $inf->country }}</td>
            <td class="">
                <img src="http://shop.mutouw.com/data/upload/shop/common/default_user_portrait.gif?0.85937500 1449029871" alt="">
            </td>
            <td class=" "> {{ $inf->product_cate }}</td>
            <td class=" ">红木</td>
            <td class=" last">
                <a href="/edit_forest?forest_id={{$inf->forest_id}}">编辑</a>
                <a  @if(empty($inf->video_id))
                    {{--href="/delete_forest?forest_id={{$inf->forest_id}}"--}}
                    href="javascript:;" class="delete"  data-forest_id="{{$inf->forest_id}}"
                    @else
                    href="/delete_forest?forest_id={{$inf->forest_id}}&&video_id={{$inf->video_id}}"

                        @endif
                >删除</>
            </td>
        </tr>
    @endforeach
    </tbody>
</table>